package com.autumn.config.consts;

/**
 * Redis 键常量
 * 
 * @author 老码农
 *
 *         2018-01-03 17:47:58
 */
public class RedisKeyConsts {

	/**
	 * 键前缀
	 */
	private final static String KEY_PREFIX = "AUTUMN_CFG_RES_";

	/**
	 * 应用
	 * 
	 * @author 老码农
	 *
	 *         2018-01-04 15:51:19
	 */
	public static class Application {
		/**
		 * 键前缀
		 */
		public final static String APP_PREFIX = KEY_PREFIX + "APP_";

		/**
		 * 服务连接列表
		 */
		public final static String SERVICE_CONNECTION_LIST_PREFIX = APP_PREFIX + "SERVICE_CONN_LIST_";

		/**
		 * 服务信息
		 */
		public final static String SERVICE_INFO_PREFIX = APP_PREFIX + "SERVICE_INFO_";

		/**
		 * 服务数据源
		 */
		public final static String SERVICE_DATA_SOURCE_PREFIX = APP_PREFIX + "SERVICE_DATA_SOURCE_";
		
		/**
		 * 服务配置
		 */
		public final static String SERVICE_PROFILE_PREFIX = APP_PREFIX + "SERVICE_PROFILE_";
	}

	/**
	 * 连接
	 * 
	 * @author 老码农
	 *
	 *         2018-01-04 15:51:19
	 */
	public static class Connection {
		/**
		 * 键前缀
		 */
		public final static String CONN_PREFIX = KEY_PREFIX + "CONN_";

		/**
		 * 连接信息
		 */
		public final static String CONN_INFO_PREFIX = CONN_PREFIX + "INFO_";

	}
}
